﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace Plataforma2D_Kaz
{
    class Floor : Sprite

    {
      Animation idle;
      
        public Floor(Texture2D image, GameWindow Window)
            :base(image, Window)
        {
            controlAnimations();
            this.animation = idle;
            colision = new Rectangle((int)position.X, (int)position.Y-animation.frame_Y/2, animation.frame_X,animation.frame_Y );
            position = new Vector2(0, Window.ClientBounds.Height - image.Height);
            visible = true;
            this.mass = 0;
            
        
        }
        private void controlAnimations()
        {
            idle = new Animation();
            
            //Attack//
            //Jump//
            //Walking//
            //Damage//
            //Idle//
            idle.framesTotal = 14;
            idle.fps = 1;
            idle.Y = 0;
            idle.frame_X = image.Width;
            idle.frame_Y = image.Height;

            //fall//
            


        }
        public override void Update(GameTime gameTime)
        {
            currentAnim = animation;
            colision.X = (int)position.X;
            colision.Y = (int)position.Y - animation.frame_Y / 2;
        }
       
        
    }
}
